﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using TaxiCaosSOAPService.Dominio;
using TaxiCaosSOAPService.Persistencia;

namespace TaxiCaosSOAPService
{
  public class Catalogos : ICatalogos
    {
        private CatalogoDAO catalogoDAO = null;
        private CatalogoDAO CatalogoDAO
        {
            get
            {
                if (catalogoDAO == null)
                    catalogoDAO = new CatalogoDAO();
                return catalogoDAO;
            }
        }

        public IList<Catalogo> ObtenerListaPorTipoCatalogo(string tipoCatalogo)
        {
            return CatalogoDAO.ObtenerListaPorTipoCatalogo(tipoCatalogo);
        }
    }
}
